A Simple and Optimal Ancestry Labeling Scheme for Trees
نویسندگان
چکیده
We consider ancestry labeling schemes: Given a rooted tree T , assign a binary string (label) to each node, such that given the labels of any two nodes, one can determine whether the first is an ancestor of the second in T . Recently, Fraigniaud and Korman [STOC’10] showed that such labels can be assigned using log n+O(log log n) bits per label, solving a long standing open question and matching a lower bound of log n + Ω(log log n) due to Alstrup et al. [SODA’03]. In this paper we present an alternative ancestry labeling scheme using log n+ 2 log log n+O(1) bits. Similar to the previously known schemes, our scheme relies on intervals and can encode any tree in O(n) time. Rather than using complicated decompositions, our scheme uses approximate interval sizes, which gives a clean algorithm that is simple enough to be taught and implemented.
منابع مشابه
An Optimal Labeling Scheme for Ancestry Queries
An ancestry labeling scheme assigns labels (bit strings) to the nodes of rooted trees such that ancestry queries between any two nodes in a tree can be answered merely by looking at their corresponding labels. The quality of an ancestry labeling scheme is measured by its label size, that is the maximal number of bits in a label of a tree node. In addition to its theoretical appeal, the design o...
متن کاملOptimal Distance Labeling Schemes for Trees
Labeling schemes seek to assign a short label to each node in a network, so that a function on two nodes (such as distance or adjacency) can be computed by examining their labels alone. For the particular case of trees, following a long line of research, optimal bounds (up to low order terms) were recently obtained for adjacency labeling [FOCS ’15], nearest common ancestor labeling [SODA ’14], ...
متن کاملCompact Ancestry Labeling Schemes for Trees of Small Depth
An ancestry labeling scheme labels the nodes of any tree in such a way that ancestry queries between any two nodes in a tree can be answered just by looking at their corresponding labels. The common measure to evaluate the quality of an ancestry labeling scheme is by its label size, that is the maximal number of bits stored in a label, taken over all n-node trees. The design of ancestry labelin...
متن کاملLabeling Schemes for Bounded Degree Graphs
We investigate adjacency labeling schemes for graphs of bounded degree ∆ = O(1). In particular, we present an optimal (up to an additive constant) log n+ O(1) adjacency labeling scheme for bounded degree trees. The latter scheme is derived from a labeling scheme for bounded degree outerplanar graphs. Our results complement a similar bound recently obtained for bounded depth trees [Fraigniaud an...
متن کاملInformative Labeling Schemes for the Least Common Ancestor Problem
We address the problem of labeling the nodes of a tree such that one can determine the identifier of the least common ancestor of any two nodes by looking only at their labels. This problem has application in routing and in distributed computing in peer-to-peer networks. A labeling scheme using Θ(log n)-bit labels has been presented by Peleg. By engineering this scheme and a new one due to the ...
متن کامل